<template>
    <div>
        <div class="goodlist">
            <div v-for="i in 8" v-bind:key="i" class="good">
                
            </div>
        </div>
    </div>
</template>
<script>
module.exports = {
    data(){
        let p = axios.get("/sendGoods");
        p.then((r) => {
            this.goods = r;
        })
        return {
            goods:[]
        }
    },
    methods: {
        nihao() {
            console.log(this.goods);
        }
    }
}
</script>

<style scoped>
    .goodlist{
        display: flex;
    }
    .good {
        width: 70px;
        height: 70px;
        background-color: cadetblue;
    }
</style>